var app = getApp()
Page({
  data: {
    avatarUrl: '',
    userName: '',
    // 
    indentNav:[
      {
        img:'../../images/icon/dfk-icon.png',
        title:'代付款',
        type:0
      },{
        img: '../../images/icon/dfh-icon.png',
        title: '待发货',
        type: 1
      }, {
        img: '../../images/icon/dsh-icon.png',
        title: '待收货',
        type: 2
      },{
        img: '../../images/icon/wc-icon.png',
        title: '已完成',
        type: 3
      }
    ]
  },
  onLoad: function (options) {
    var that = this;
    var userInfo = wx.getStorageSync('userInfo')
    that.setData({
      avatarUrl: userInfo.avatarUrl,
      userName: userInfo.nickName
    })
  },
  // 
  navTo: function (e) {
    var url = e.currentTarget.dataset.url;
    wx.navigateTo({
      url: url,
    })
  },
  // 地址管理
  chooseAdd: function () {
    wx.chooseAddress({

    })
  }
})